import numpy as np

# 矩阵的点积与矩阵元素之间的相乘运算
n1 = np.mat('1 3 3;4 5 6;7 12 9')
n2 = np.mat('2 6 6;8 10 12;14 24 18')

print(n1)
print(n2)

print('矩阵相乘的结果：', n1 * n2)
print('矩阵对应元素相乘：', np.multiply(n1, n2))

